home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Now 11 / CD-ROM Now MegaDisc 11 (1995-02).iso / discs / toolkit / slakware.faq < prev    next >
Text File  |  1994-11-01  |  16KB  |  391 lines

  1. Slackware FAQ, last revised: 9 June 1994
  2.  
  3. These are questions people ask me quite often. Hopefully now that they're
  4. answered here that won't be the case. :^)
  5.  
  6. -----
  7.  
  8. Q: Why do I get "network unreachable" under Slackware?
  9.  
  10. A: There are a couple of possibilities. For most users, things work right out
  11.    of the box. However, if you're running into this problem here are two
  12.    workarounds you can try:
  13.  
  14.    1. Reverse the broadcast and netmask arguments (and their variables)
  15.       in the call to ifconfig in /etc/rc.d/rc.inet1. Make sure you are
  16.       not trying to route your own IP address - you shouldn't have to.
  17.  
  18.    2. Make sure /etc/networks is properly configured.
  19.  
  20.    3. You may want to try the 'netconfig' script (in the package netcfg.tgz).
  21.       It's not perfect, but does a pretty good job. 
  22.  
  23. -----
  24.  
  25. Q: Why the $%#@! isn't my UltraStor SCSI detected? It works under DOS!
  26.  
  27. A: Set the I/O address to 0x340 instead to 0x330.
  28.  
  29.    For any hardware that doesn't work, a good rule is to try playing around
  30.    with the IRQ and I/O settings on it to see what happens. If your system
  31.    is up and running and you're having problems with a CD-ROM or tape or
  32.    something like this, you can always look around for the driver source in
  33.    /usr/src/linux/drivers... really, it won't bite!  Often, the source 
  34.    contains important documentation, such as the default IRQ settings for
  35.    that type of device, and the major number for the entry in /dev. Also,
  36.    try other bootkernels and see if that helps.
  37.  
  38. -----
  39.  
  40. Q: My large (> 1/2 gig) IDE drive reports more than 16 heads, and as a 
  41.    result Linux won't install on it. What can I do?
  42.  
  43. A: See the file EIDE.TXT for instructions on how to make it work. (Thanks to
  44.    Bob DiMarco for forwarding this to me, and Patrick LoPresti for compiling
  45.    the information in the first place)
  46.  
  47.    Note that newer kernels (> 1.1.40) will do this translation for you 
  48.    automatically, and thus make the workaround unnecessary. Once these new
  49.    kernels make it into the Q series, you should probably use one of them if
  50.    you have an EIDE drive and want to avoid the whole problem.
  51.  
  52. -----
  53.  
  54. Q: How do I make a Slackware bootkernel disk with this new kernel I made?
  55.  
  56. A: OK, well you grab an existing one like the "bare.gz", put it on a floppy,
  57.    and do this:
  58.  
  59.    mount /dev/fd0 /mnt (this mounts it)
  60.    cat zImage > /mnt/vmlinuz (put the new kernel in place)
  61.    rdev -R /mnt/vmlinuz 0    (mount read-write)
  62.    rdev /mnt/vmlinuz /dev/fd0H1440   (use that drive, or /dev/fd0h1200)
  63.    rdev -r /mnt/vmlinuz 1440 (set the ramdisk size, or use 1200 with 1.2 meg)
  64.    lilo -r /mnt  (reinstall lilo)
  65.    umount /mnt   (that's it! you're done! :^)
  66.  
  67.    If you want it to stop and give the message to switch disks, you'll need the
  68.    ramdisk.c patch in /pub/linux/slackware/kernels on ftp.cdrom.com. I have no
  69.    idea if this will still patch into the newest kernels. Otherwise, you don't
  70.    really need it if you're brave enough to just switch the new disk in as soon
  71.    as you see the "Uncompressing Linux..." message. It's always worked for me.
  72.  
  73. -----
  74.  
  75. Q: I just built a new kernel. Now how to I go about replacing my existing
  76.    kernel with this new zImage file?
  77.  
  78. A: First, you must prepare the new kernel. If you're using UMSDOS, you'll want 
  79.    your system to boot read-write. Otherwise, you'll want it to boot read-only
  80.    so your filesystems can be safely checked. So, do this:
  81.  
  82.    For UMSDOS:
  83.       rdev -R zImage 0
  84.    For any other filesystem type:
  85.       rdev -R zImage 1
  86.  
  87.    Then, you'll need to set the root partition. For example, if your root 
  88.    Linux partition is /dev/hda2, you'd do this:
  89.  
  90.       rdev zImage /dev/hda2
  91.  
  92.    Then, you can set a video mode if you like. As an example, this sets normal
  93.    80x25 console mode:
  94.  
  95.       rdev -v zImage -1
  96.  
  97.    Other modes include:  -3 = Prompt, -2 = Extended VGA. You might need to 
  98.    remove a line in your /etc/lilo.conf that forces normal video if you use
  99.    LILO and wish to try an extended video mode.
  100.  
  101.    Next, you need to install the kernel. If you boot from a floppy disk, you
  102.    can simply stick a formatted floppy into your drive and write the zImage
  103.    to it like this:
  104.  
  105.    cat zImage > /dev/fd0
  106.  
  107.    If you use lilo, you should copy the zImage to where your lilo.conf expects
  108.    it to be and then reinstall lilo. This should work if you used Slackware's
  109.    liloconfig script to set up LILO. (this is the script setup uses)
  110.  
  111.    cp zImage /vmlinuz ; lilo
  112.   
  113.    You may wish to back up your existing /vmlinuz first.
  114.  
  115.    Now, just reboot and if all goes well you'll be running from your new 
  116.    kernel!
  117.    
  118. -----
  119.  
  120. Q: Why doesn't my bus mouse work? The kernel, selection, the
  121.    X server and test-mouse all say "no such device."
  122.  
  123. A: The kernels distributed with Slackware don't have the drivers for
  124.    busmice compiled in. Last time I tried to include all of them there
  125.    were horrible driver conflicts -- better to leave them out if they
  126.    can't coexist.  Obviously, it's not feasible for me to provide 
  127.    versions of every precompiled kernel for each type of busmouse. I 
  128.    only have a 386. ;^)
  129.  
  130.    The solution is to get the kernel sources, configure the kernel to 
  131.    support the your type of mouse and no other mouse devices, and rebuild
  132.    it. Documentation on how to do this is included in the kernel
  133.    source, i.e. the kernel.tgz package found in the D series. You will
  134.    also need at least the gcc.tgz, include.tgz, libc.tgz, and binutils.tgz
  135.    packages from the D series to rebuild the kernel.
  136.  
  137. -----
  138.  
  139. Q: I see my SoundBlaster/Panasonic CD-ROM detected at boot, but I can't
  140.    install from it or mount it. What's going on?
  141.  
  142. A. Try setting to drive's ID to 0. This is expected by the install disks.
  143.    There should be a jumper on the back of the drive that selects this --
  144.    just move it to the leftmost position.
  145.  
  146. -----
  147.  
  148. Q: I'm using UMSDOS and would like to use the same swapspace under Windows
  149.    and Linux. Can this be done?
  150.  
  151. A: If you want to share a Linux-UMSDOS swapfile with MS-Windows, you can
  152.    do the following:
  153.  
  154.    1. Create PERMANENT(!) swap file in MS-Windows with size NNNN kbytes.
  155.    2. In /etc/rc.d/rc.local add the following lines:
  156.  
  157.    rm -f /DOS/windows/spart.par  <--- Needed in order to suppress
  158.                                       Windows complain on next start!
  159.    mkswap /DOS/386spart.par NNNN
  160.    sync
  161.    swapon /DOS/386spart.par
  162.  
  163.    3.In /etc/rc.d/rc.0 add "swapoff" for this file.
  164.  
  165. -----
  166.  
  167. Q: What's the password for root on the install disk?
  168.  
  169. A: There isn't one. If you're asked for one, it usually means that you
  170.    don't have enough memory to install.
  171.  
  172.    To help work around this, look in your CMOS settings and make sure you don't
  173.    have any ROM shadowing enabled. ROM shadowing wastes memory and won't
  174.    improve the performance of Linux. Also, make sure you're using the smallest
  175.    bootkernel disk you can. For example, you don't need to use "scsinet" if
  176.    you're not installing to a SCSI drive via NFS. Use something small -- the
  177.    "bare" disk if you can get away with it. Some people mistakenly think they
  178.    need to use a bootkernel disk with network drivers if they plan to use
  179.    networking after installation. Not so! The drivers on the bootkernel disk
  180.    have no impact on what you can use *after* installation -- in almost all
  181.    cases you won't be running the same kernel on your installed system as
  182.    you used to install it.
  183.  
  184. -----
  185.  
  186. Q: How can I install and remove software now that the Slackware Linux 
  187.    distribution is installed on my machine?
  188.  
  189. A: To remove packages, type "pkgtool" and follow the prompts. Pkgtool will
  190.    also allow you to add packages that are in the current directory.
  191.  
  192.    The preferred way to install software is with the "setup" script.
  193.    When you do your initial installation, setup puts a copy of itself in your 
  194.    /sbin for future use. You can also add software to your machine using the 
  195.    boot/install disk, if you really want to. 
  196.  
  197.    When adding software to a running system via NFS, it is preferable to
  198.    mount the partition yourself and then use the 'install from a mounted
  199.    directory' feature of setup.
  200.  
  201.    There are also command line utilities that allow you to create, install,
  202.    and remove packages. For these, you should refer to the manpages:
  203.    installpkg(8), removepkg(8), makepkg(8), explodepkg(8). A simple example
  204.    of how you would install a package with installpkg:
  205.  
  206.    installpkg package.tgz
  207.  
  208. -----
  209.  
  210. Q.  How do I know what files setup/pkgtool/installpkg is putting where ?
  211.  
  212. A.  Look around in /var/adm/packages.
  213.     Similarly, you can find installation scripts for each package in 
  214.     /var/adm/scripts.
  215.  
  216. -----
  217.  
  218. Q: I set my partitions to "Linux native" but Slackware still won't detect
  219.    them! What can I do?
  220.  
  221. A: This problem is rare and I still don't know what causes it.
  222.  
  223.    [ Note that this is not the same problem that usually affects the IBM PS/1,
  224.    Thinkpad, and similar machines that do not detect the harddrive. If you've
  225.    got one of these machines, and fdisk is giving you problems, your answer is
  226.    still ahead :^) ]
  227.  
  228.    Here's a workaround you can use to install anyway:
  229.  
  230.    1. Start tty12 or tty144 using one of the bootkernel disks.
  231.    2. Make and format partitions for Linux.
  232.    3. Mount the target partitions under /mnt.
  233.    4. Type "setup -target_mounted"
  234.    5. Follow the rest of the instructions to install.
  235.    6. Type "vi /mnt/etc/fstab" and enter an appropriate fstab.
  236.       As an example, here's what mine contains:
  237.  
  238. /dev/hdb2   swap    swap   defaults 
  239. /dev/hda2   /       ext2   defaults
  240. /dev/hda3   /usr    xiafs  defaults 
  241. /dev/hda1   /dos    msdos  defaults 
  242. /dev/hdb1   /os2    msdos  defaults 
  243. none        /proc   proc   defaults
  244.  
  245.    To give you some more info about this file, the first field is the
  246.    partition to be mounted, the second is where it should be mounted, the
  247.    third is the filesystem type, and the last field is the options to use.
  248.    Unless you're a Linux wizard, just set this to "defaults".
  249.  
  250.    Other things to remember about this file:
  251.       - Make sure that you list the root partition before any other partitions
  252.         that are mounted beneath it.
  253.       - Add the /proc line, or "ps", "w", etc, won't work.
  254.       - It's a good idea to put a blank line at the end of the file, as I've
  255.         had reports that partitions listed on the last line might not be 
  256.         mounted.
  257.  
  258.    7. Once you've made and saved this file you can reboot with ctrl-alt-delete.
  259.  
  260. -----
  261.  
  262. Q: I have a (PS/1 || Valuepoint || Thinkpad), and can't install because fdisk
  263.    can't see my hard drive. How can I get around this?
  264.  
  265. A: You'll need to enter your drive parameters at the bootkernel prompt. You
  266.    can even specify the geometry for your second IDE drive by supplying a
  267.    second  hd= parameter right after the first one. 
  268.  
  269.    When you boot the bootkernel disk, you'll see more information about the
  270.    format used to pass your drive parameters to the kernel at the LILO prompt
  271.    and allow your drive to be recognized.
  272.  
  273.    You'll have to edit your lilo.conf file to add a similar hd= flag if you
  274.    want LILO to work. Add this as the TOP line in the file:
  275.  
  276.    append="hd=cyl,hds,secs"
  277.  
  278.    Where "cyl", "hds", and "secs" are the number of cylinders, sectors,
  279.    and heads on the drive.
  280.  
  281.    If you have two IDE drives, specify both drives (like this):
  282.  
  283.    append="hd=967,13,31 hd=944,14,40"
  284.  
  285. -----
  286.  
  287. Q: Why do my /etc/issue and /etc/motd keep resetting themselves at boot time?
  288.  
  289. A: The /etc/rc.d/rc.S resets them out every time you boot after figuring out
  290.    which kernel you're running -- otherwise the kernel version printed at login
  291.    might not stay current.
  292.  
  293.    If you want to write your own /etc/issue and /etc/motd, you need to comment
  294.    out that part of /etc/rc.d/rc.S.
  295.  
  296. -----
  297.  
  298. Q: Emacs dumps core, complains of a missing library, or lacks X11 support! Why?
  299.  
  300. A: The GNU Emacs series includes your choice of a version with X11 support, or
  301.    one without. Make sure you have the right binary for your machine. 
  302.  
  303.    The binary supporting X11 is installed as part of a package on the first 
  304.    disk that you'll need to install whether you want X11 support or not. If
  305.    you DO NOT want X11 support, install the package 'emac_nox.tgz' on the last
  306.    disk of the Emacs series.
  307.  
  308.    If you just install all of the disks, you don't get X11 support. It had to
  309.    be one way or the other, so if you're not paying attention when you install
  310.    at least this way it will run no matter what.
  311.  
  312. -----
  313.  
  314. Q: Why do my compiles sometimes die with 'signal 11: internal compiler error'?
  315.  
  316. A: This indicates a hardware problem in about 99% of the cases. It can usually
  317.    be fixed by increasing the number of wait states in the CMOS settings. It
  318.    can almost always be fixed by turning off the RAM cache, but this should be
  319.    your last resort since it will cause a noticeable slowdown.
  320.  
  321. -----
  322.  
  323. Q: How can I change (or get rid of) the color ls?
  324.  
  325. A: Read the man page, and check out the file /etc/DIR_COLORS. You can
  326.    configure the colors any way you like, or shut them off entirely. Also, you
  327.    can copy /etc/DIR_COLORS into your home directory as '.dir_colors' to 
  328.    override the global defaults on a user by user basis.
  329.  
  330. -----
  331.  
  332. Q: I start X with "openwin" and it works OK, but I can't switch virtual
  333.    consoles. Why?
  334.  
  335. A: On a Linux text screen, you switch virtual consoles with Alt-F1 through 
  336.    Alt-F8. Under XFree-86, you must use Ctrl-Alt-F1 through Ctrl-Alt-F8. 
  337.    Another useful 'secret' key combination is RightShift-PgUp/PgDown for
  338.    scrollback. (a random amount ranging from none to a few pages, depending
  339.    on the state of your video text buffer memory)
  340.  
  341. -----
  342.  
  343. Q: Why can't I use the new ghostscript with X?
  344.  
  345. A: Make sure you have gs_x11.tgz from disk XAP1 installed.
  346.  
  347. -----
  348.  
  349. Q: I can't get anything to work at all! What's the deal?
  350.  
  351. A: If you seem to suffer catastrophic failure (!), then check the file FILE_LIST
  352.    on ftp.cdrom.com in /pub/linux/slackware against the contents of your disks
  353.    and make sure you're not missing any files. 
  354.  
  355.    Also, I've noticed that most of the reports of kernel panics and system 
  356.    hangs have come from people with 4MB. If you're running into these types
  357.    of problems I'd suggest forking over the $$$ for 4 more meg. I have 8 MB of
  358.    RAM and never have crashes. (well, only when I really push my luck)
  359.    If you don't want to do that, then go through your /etc/rc.d/rc.* files and
  360.    get rid of any daemons you don't use, like crond, lpd, or selection.
  361.  
  362.    If you've got 4 MB and you're getting 'virtual memory exceeded in new'
  363.    warnings, make sure you set up and activate a swap partition before running
  364.    setup. If you're really hard up on memory, you can boot a rootdisk using
  365.    'editroot' instead of one of the usual boot kernels. This will mount the 
  366.    floppy in the root drive, and you'll have to install from the other drive
  367.    or from the hard drive. You will also not be able to create any kind of boot
  368.    disk, so you'll have to install LILO and take your chances. I only suggest
  369.    using this approach if a swapfile will not work.
  370.  
  371. -----
  372.  
  373. Q: How do I make a bootkernel disk that uses a custom kernel?
  374.  
  375. A: Look in the ./kernels subdirectory. You'll find complete instructions
  376.    on how to make them in there.
  377.  
  378. -----
  379.  
  380. Also - at ftp.gwdg.de:/pub/linux/install-mount/slack-info are some more
  381. networking hints.
  382.  
  383. In addition, the LDP people have put out an excellent set of manuals that I
  384. may include in a future Slackware release. These are available on
  385. sunsite.unc.edu in /pub/Linux/docs/LDP.
  386.  
  387. ---
  388. Patrick Volkerding
  389. volkerdi@mhd1.moorhead.msus.edu
  390. volkerdi@ftp.cdrom.com
  391.